﻿
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LxCFD
{
    public abstract class Value1OppositeFromArray1
    {
        public class Double : Value1FromArray1<double>
        {
            public override double GetCellValue(int cellIndex)
            {
                return -CommonArray[cellIndex];
            }
            public override double GetFaceValue(int faceIndex)
            {
                return -CommonArray[faceIndex];
            }
        }
        public class Vector : Value1FromArray1<Vector3d>
        {
            public override Vector3d GetCellValue(int cellIndex)
            {
                return -CommonArray[cellIndex];
            }
            public override Vector3d GetFaceValue(int faceIndex)
            {
                return -CommonArray[faceIndex];
            }
        }
    }
}
